﻿<%@ Page Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true"
    CodeFile="Category_List.aspx.cs" Inherits="management_Produt_Category_List" Title="产品分类" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Css/Main.css" rel="stylesheet" type="text/css" />
    <script language='javascript' type='text/javascript'> 
function OnTreeNodeChecked() 
{ 
var ele = event.srcElement; 
if(ele.type=='checkbox') 
{ 
var childrenDivID = ele.id.replace('CheckBox','Nodes'); 
var div = document.getElementById(childrenDivID); 
if(div==null)return; 
var checkBoxs = div.getElementsByTagName('INPUT'); 
for(var i=0;i<checkBoxs.length;i++) 
{ 
if(checkBoxs[i].type=='checkbox') 
checkBoxs[i].checked=ele.checked; 
} 
} 
} 
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="Header">
        <div class="header_Sub font14px clear">
            <ul>
                <li>产品管理</li>
                <li>产品分类</li>
            </ul>
        </div>
        <div class="header_Foot">
            <ul>
                <li><a href="Category_Add.aspx" class="Info_Add">添加信息</a></li>
                <li class="bgColorG">
                    <asp:LinkButton ID="btn_delete" runat="server" Text="删除信息" CssClass="Info_Del" OnClick="btn_delete_Click"
                        OnClientClick="return confirm('确认要删除此行信息吗？')"/></li>
                        <li style="width:360px"><span class="Tip">&nbsp;提示信息：点击相应标题进行修改！</span></li>
            </ul>
        </div>
    </div>
    <div class="container">
        <div class="gridbox">
            <asp:TreeView ID="TreeCategory" runat="server" ShowLines="True" CssClass="treelist"
                ShowCheckBoxes="All" OnSelectedNodeChanged="TreeCategory_SelectedNodeChanged">
            </asp:TreeView>
        </div>
    </div>
</asp:Content>
